Other Classes
The following classes are available globally.
-
VOActionSheetItem represents one item inside a VOActionSheetViewController.
See moreDeclaration
Objective-C
@interface VOActionSheetItem : NSObject
Swift
class VOActionSheetItem : NSObject
-
VOActionSheetViewController is a custom action sheet used by the SDK. It works similarly to a UIAlertController with style UIAlertControllerStyleActionSheet. Each action sheet item is an action in the controller. If there are too many actions to fit on screen, the actions will become scrollable. A cancel action is automatically added.
See moreDeclaration
Objective-C
@interface VOActionSheetViewController : UIViewController
Swift
class VOActionSheetViewController : UIViewController
-
Undocumented
See moreDeclaration
Objective-C
@interface VOAddNoteViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol, VORevealPersonalizationViewControllerProtocol> /** Default instantiation method for `VOAddNoteViewController` @param personalizationOption - contains the configuration options for the note creation @param createManager - the manager responsible for handling the flow management in the creation process. @param createFlowDelegate - the object responsible for implementing VOAddNoteViewController callbacks @return an instance of VOAddNoteViewController **/ + (instancetype)viewControllerWithPersonalizationOption:(VOPersonalizationOption *)personalizationOption createManager:(VOVoucherCreationManager *)createManager createFlowDelegate:(nullable id<VOVoucherCreationFlowDelegate>)createFlowDelegate; /** Overloaded instantiation method for 'VOAddNoteViewController' - used to hande the case when a specific note is to be edited @param personalizationOption - contains the configuration options for the note creation @param createManager - the manager responsible for handling the flow management in the creation process. @param createFlowDelegate - the object responsible for implementing VOAddNoteViewController callbacks @param note - the note to be edited; if this is set a specific note will be loaded, otherwise all notes will be loaded @return an instance of VOAddNoteViewController **/ + (instancetype)viewControllerWithPersonalizationOption:(VOPersonalizationOption *)personalizationOption createManager:(VOVoucherCreationManager *)createManager createFlowDelegate:(nullable id<VOVoucherCreationFlowDelegate>)createFlowDelegate toBeEdited:(nullable VONoteMedia *)note; @end
Swift
class VOAddNoteViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol, VORevealPersonalizationViewControllerProtocol
-
See moreVOAnimatedPersonalizationOption
represents aVOVoucher
customization that allows the user to add animated images to theirVOVoucher
. Instantiate aVOAnimatedPersonalizationOption
and include it in the voucher creation view controller setup if you would like the user to be able to add animated photos. *Declaration
Objective-C
@interface VOAnimatedPersonalizationOption : VOPersonalizationOption
Swift
class VOAnimatedPersonalizationOption : VOPersonalizationOption
-
See moreVOAnimatedPersonalizationOptionBuilder
is used only to help construct theVOAnimatedPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOAnimatedPersonalizationOption
animatedPersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOAnimatedPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOAnimatedPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
VOButtonTheme is used to theme all buttons of the application.
See moreDeclaration
Objective-C
@interface VOButtonTheme : NSObject <NSCopying>
Swift
class VOButtonTheme : NSObject, NSCopying
-
Use this class when temporary, in-memory storage is required.
See moreDeclaration
Objective-C
@interface VOCacheManager : NSObject <VOCacheProtocol>
Swift
class VOCacheManager : NSObject, VOCacheProtocol
-
See moreVOChallengePersonalizationOption
represents aVOVoucher
customization which will allow users to add a challenge. Instantiate aVOChallengePersonalizationOption
if a challenge can be added to theirVOVoucher
. *Declaration
Objective-C
@interface VOChallengePersonalizationOption : VOPersonalizationOption
Swift
class VOChallengePersonalizationOption : VOPersonalizationOption
-
See moreVOChallengePersonalizationOptionBuilder
is used only to help construct theVOChallengePersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOChallengePersonalizationOption
challengePersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOChallengePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOChallengePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
VOConfig
is the global config for the VouchrSDK.Note
serverUrlString and sdkIdString must be set or the application will throw an exception when theVOEngine
is built.These properties can be implemented in code or by plist.
By Code: Use
config
initializer and set the properties manually before passing it to theVOEngine
.By Plist: Add VOConfig.plist and use the
See moredefaultConfig
initializer or add.plist and use the configWithContentsOfFile:<path_to_plist>
initializerDeclaration
Objective-C
@interface VOConfig : NSObject
Swift
class VOConfig : NSObject
-
VOCreateChallengesViewController
is the default implementation of the challenge selection screen to pick a game. It displays all available games and allows users to play to preview the game and change game difficulty. It allows allows the user to change a games difficulty if the game can change difficulty.Declaration
Objective-C
@interface VOCreateChallengesViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>
Swift
class VOCreateChallengesViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VOCreateHTMLTitleViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol> @property (weak, nonatomic) id<VOPersonalizationOptionViewControllerDelegate> delegate; + (instancetype)viewControllerWithPersonalizationOption:(VOPersonalizationOption *)personalizationOption createManager:(VOVoucherCreationManager *)createManager createFlowDelegate:(nullable id<VOVoucherCreationFlowDelegate>)createFlowDelegate; @end
Swift
class VOCreateHTMLTitleViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
See moreVOCreationItemView
is the view that is dropped into theEnvelopeView
of theVoucherCreationViewController
. It represents a chosenPersonalizationOption
object by the creatingUser
.Declaration
Objective-C
@interface VOCreationItemView : UIView
Swift
class VOCreationItemView : UIView
-
Undocumented
See moreDeclaration
Objective-C
@interface VODialogView : UIView <VODialogViewProtocol> + (instancetype)vouchrDialogWithVouchrTheme:(VOTheme *)vouchrTheme; - (void)keyboardWillShow:(NSNotification *)notification; - (void)keyboardWillHide:(NSNotification *)notification; @end
Swift
class VODialogView : UIView, VODialogViewProtocol
-
See moreVODiscoverManager
is an object responsible for requesting discoverable content.Declaration
Objective-C
@interface VODiscoverManager : NSObject <VODiscoverManagerProtocol>
Swift
class VODiscoverManager : NSObject, VODiscoverManagerProtocol
-
See moreDiscoverManagerBuilder
is used to construct theVODiscoverManager
and should not be initialized directly.Declaration
Objective-C
@interface DiscoverManagerBuilder : NSObject
Swift
class DiscoverManagerBuilder : NSObject
-
See moreVODiscoverScreenBuilder
is used only to help construct theVODiscoverScreenViewController
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOEngine
vouchrEngineWithBuilder:
method.Declaration
Objective-C
@interface VODiscoverScreenBuilder : NSObject
Swift
class VODiscoverScreenBuilder : NSObject
-
Undocumented
See moreDeclaration
Objective-C
@interface VODiscoverScreenV1ViewController : UIViewController<VODiscoverScreenViewControllerProtocol> @property (nonatomic, weak) id<VODiscoverScreenViewControllerDelegate> delegate; + (instancetype)viewControllerWithDiscoverManager:(VODiscoverManager *)discoverManager creationManager:(VOVoucherCreationManager *)createManager creationFlowCoordinator:(VOVoucherCreationFlowCoordinator *)creationFlowCoordinator vouchrTheme:(VOTheme *)vouchrTheme builder:(void (^)(VODiscoverScreenBuilder *builder))builderBlock; @end
Swift
class VODiscoverScreenV1ViewController : UIViewController, VODiscoverScreenViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VODiscoverScreenV2ViewController : UIViewController<VODiscoverScreenViewControllerProtocol> @property (nonatomic, weak) id<VODiscoverScreenViewControllerDelegate> delegate; + (instancetype)viewControllerWithDiscoverManager:(VODiscoverManager *)discoverManager creationManager:(VOVoucherCreationManager *)createManager creationFlowCoordinator:(VOVoucherCreationFlowCoordinator *)creationFlowCoordinator vouchrTheme:(VOTheme *)vouchrTheme builder:(void (^)(VODiscoverScreenBuilder *builder))builderBlock; @end
Swift
class VODiscoverScreenV2ViewController : UIViewController, VODiscoverScreenViewControllerProtocol
-
VouchrEngine
is a singleton that persists and provides access to core manager dependencies.Note
Usage Notes Initialize the VOEngine using thevouchrEngineWithBuilder:
method. Example:VOEngine *vouchrEngine = [VOEngine vouchrEngineWithBuilder:^(VouchrEngineBuilder *builder) { builder.cacheManager = [VOCacheManager new]; builder.networkManager = [VONetworkManager new]; builder.userManager = [[VOUserManager alloc] initWithCacheManager:builder.cacheManager networkManager:builder.networkManager persistManager:nil]; }];
Declaration
Objective-C
@interface VOEngine : NSObject
Swift
class VOEngine : NSObject
-
Undocumented
Declaration
Objective-C
@interface VOEnvelopeFactory : NSObject<VOGiftPackageFactory> @end
Swift
class VOEnvelopeFactory : NSObject, VOGiftPackageFactory
-
VOError
will be returned inside the userInfo of an NSError on errors from the VouchrServer when using theVONetworkManager
to make network calls.It can be accessed from the NSError:
See moreVOError *vouchrError = error.userInfo[@"message"];
Declaration
Objective-C
@interface VOError : NSObject
Swift
class VOError : NSObject
-
VOFontTheme is used to theme all text in the application.
See moreDeclaration
Objective-C
@interface VOFontTheme : NSObject <NSCopying>
Swift
class VOFontTheme : NSObject, NSCopying
-
See moreVOFullScreenImageEditViewController
is the screen responsible for displaying a selected image and all photo editing options. It allows users to interact with and customize a selected image.Declaration
Objective-C
@interface VOFullScreenImageEditViewController : UIViewController
Swift
class VOFullScreenImageEditViewController : UIViewController
-
See moreVOGameData
contains all the data for a game / challenge. It contains data that will stay static (eg. the title of the game), and data that will change based on whichVOVoucher
it is in (eg. scoreToWin).Declaration
Objective-C
@interface VOGameData : NSObject
Swift
class VOGameData : NSObject
-
See moreVOGameDifficulty
represents a difficulty a specificVOGameData
is to be played at.Declaration
Objective-C
@interface VOGameDifficulty : NSObject
Swift
class VOGameDifficulty : NSObject
-
See moreVOGameFactory
produces UIViewControllers that conform toGameViewControllerProtocol
for the specified types.VOGameFactory
communicates with theVOVoucherCreationFlowDelegate
and delegates outside the SDK if necessary.Declaration
Objective-C
@interface VOGameFactory : NSObject
Swift
class VOGameFactory : NSObject
-
See moreVOGameManager
is the default implementation of theVOGameManagerProtocol
. It is responsible for any game related network requests.Declaration
Objective-C
@interface VOGameManager : NSObject <VOGameManagerProtocol>
Swift
class VOGameManager : NSObject, VOGameManagerProtocol
-
VOGiftTagViewController
is the screen that allows users to send aVOVoucher
to a selected recipient or invite multiple recipients to compete in a race for theVOVoucher
. The screen also contains a DateTime picker which determines when aVOVoucher
can be unwrapped / when a race will take place.Declaration
Objective-C
@interface VOGiftTagViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>
Swift
class VOGiftTagViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
VOGoogleImageSearchAgent follows the VOSearchAgent protocol to get image’s from Google Custom Search. In increments of 10, it will return 100 or less images on a successful search, depending on the maxSearchResult property of the VOPhotoPersonalizationOption. It searches with safeSearch set to
See morehigh
.Declaration
Objective-C
@interface VOGoogleImageSearchAgent : NSObject <VOSearchAgent>
Swift
class VOGoogleImageSearchAgent : NSObject, VOSearchAgent
-
See moreVOHtmlGameData
is aVOGameData
with additional properties specifically for html games.Declaration
Objective-C
@interface VOHtmlGameData : VOGameData
Swift
class VOHtmlGameData : VOGameData
-
See moreVOHtmlGameViewController
presents a fullscreenSKWebView
to enable users to play games that supportVOHtmlGameData
.Declaration
Objective-C
@interface VOHtmlGameViewController : UIViewController <VOGameViewControllerProtocol>
Swift
class VOHtmlGameViewController : UIViewController, VOGameViewControllerProtocol
-
See moreVOImageMedia
is aVouchrMedia
for photos and animated photos.Declaration
Objective-C
@interface VOImageMedia : VOVoucherMedia
Swift
class VOImageMedia : VOVoucherMedia
-
See moreVouchrImageModelSearchViewController
searches and displays images from aVOSearchAgent
source.Declaration
Objective-C
@interface VOImageMediaSearchViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>
Swift
class VOImageMediaSearchViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VOImages : NSObject #pragma mark - Common @property (nonatomic) UIImage *commonBackButtonImage; @property (nonatomic) UIImage *commonCloseButtonImage; //game banner is different than the rest @property (nonatomic) UIImage *commonSelectedCheckmarkImage; @property (nonatomic) UIImage *commonEmptyProfileImage; @property (nonatomic) UIImage *commonPlayButtonImage; @property (nonatomic) UIImage *commonPauseButtonImage; @property (nonatomic) UIImage *commonStopButtonImage; @property (nonatomic) UIImage *commonSearchButtonImage; @property (nonatomic) UIImage *commonHelpButtonImage; @property (nonatomic) UIImage *commonAddButtonImage; @property (nonatomic) UIImage *commonEditButtonImage; @property (nonatomic) UIImage *commonChevronDownImage; @property (nonatomic) UIImage *commonChevronDetailImage; @property (nonatomic) UIImage *commonYoutubeLogoDetail; @property (nonatomic) UIImage *commonVideoFilmstripImage; @property (nonatomic) UIImage *commonNoteBackgroundImage; @property (nonatomic) UIImage *commonDefaultWrappingPaperImage; @property (nonatomic) UIImage *commonCheckmarkImage; @property (nonatomic) UIImage *commonRefreshImage; #pragma mark - Action Sheet @property (nonatomic) UIImage *actionSheetRecordedVideoMenuIconImage; @property (nonatomic) UIImage *actionSheetYoutubeMenuIconImage; @property (nonatomic) UIImage *actionSheetCameraRollIconImage; @property (nonatomic) UIImage *actionSheetTakePhotoIconImage; @property (nonatomic) UIImage *actionSheetGoogleImagesIconImage; #pragma mark - Payment Summary Screen @property (nonatomic) UIImage *paymentSummaryAmexCardImage; @property (nonatomic) UIImage *paymentSummaryDiscoverCardImage; @property (nonatomic) UIImage *paymentSummaryMastercardCardImage; @property (nonatomic) UIImage *paymentSummaryVisaCardImage; @property (nonatomic) UIImage *paymentSummaryPrivacyIconImage; @property (nonatomic) UIImage *paymentSummaryPrivacyFriendsIconImage; #pragma mark - Creation Screen @property (nonatomic) UIImage *personalizationLockedIconImage; @property (nonatomic) UIImage *creationScreenBackgroundImage; @property (nonatomic) UIImage *creationScreenDeleteImage; @property (nonatomic) UIImage *creationPackageRotatingEffectImage; #pragma mark - Recipient Screen @property (nonatomic) UIImage *recipientScreenPrimaryBackgroundTextureImage; @property (nonatomic) UIImage *recipientScreenSecondaryBackgroundTextureImage; @property (nonatomic) UIImage *recipientScreenUserSelectedCheckboxIconImage; @property (nonatomic) UIImage *recipientScreenUserUnselectedCheckboxIconImage; @property (nonatomic) UIImage *recipientScreenSelectFriendIconImage; @property (nonatomic) UIImage *recipientScreenSelectContestModeIconImage; @property (nonatomic) UIImage *recipientScreenContestModeIconImage; #pragma mark - Challenge Screen @property (nonatomic) UIImage *addChallengeTutorialNextButtonImage; @property (nonatomic) UIImage *challengeScoreReachedWinBannerImage; #pragma mark - Merchant Screen @property (nonatomic) UIImage *merchantScreenGiftCardBackgroundImage; @property (nonatomic) UIImage *merchantScreenDisclaimerTextBottomGradientImage; #pragma mark - Discovery Screen @property (nonatomic) UIImage *discoverScreenBackgroundImage; @property (nonatomic) UIImage *discoverScreenHeaderImage; //currently in builder @property (nonatomic) UIImage *discoverScreenAddButtonImage; @property (nonatomic) UIImage *discoverScreenDeleteButtonImage; @property (nonatomic) UIImage *discoverScreenPlayVideoButtonImage; @property (nonatomic) UIImage *discoverScreenReplayVideoButtonImage; @property (nonatomic) UIImage *discoverScreenSoundOnIconImage; @property (nonatomic) UIImage *discoverScreenSoundOffIconImage; #pragma mark - Reveal Screen @property (nonatomic) UIImage *revealScreenBackgroundImage; @property (nonatomic) UIImage *revealScreenConfettiShape1Image; @property (nonatomic) UIImage *revealScreenConfettiShape2Image; @property (nonatomic) UIImage *revealScreenConfettiShape3Image; @property (nonatomic) UIImage *revealScreenConfettiShape4Image; #pragma mark - Camera Screen @property (nonatomic) UIImage *cameraPositionToggleButtonImage; @end
Swift
class VOImages : NSObject
-
Undocumented
See moreDeclaration
Objective-C
@interface VOLoadingView : UIView <VOLoadingViewProtocol> /** Convenience initializer @param color - the color of the activity indicator view. */ - (instancetype)initWithColor:(UIColor *)color; @end
Swift
class VOLoadingView : UIView, VOLoadingViewProtocol
-
See moreVOMerchant
s represent a personalization type that is of monetary value (eg. Gift cards, Money Transfers).Declaration
Objective-C
@interface VOMerchant : NSObject <NSCoding>
Swift
class VOMerchant : NSObject, NSCoding
-
See moreVOMerchantManager
is the default implementation ofVOMerchantManagerProtocol
. It is responsible for requesting and parsingVOMerchant
s from the VouchrServer.Declaration
Objective-C
@interface VOMerchantManager : NSObject <VOMerchantManagerProtocol>
Swift
class VOMerchantManager : NSObject, VOMerchantManagerProtocol
-
See moreVOMerchantProduct
represents a product inside aVOMerchant
. Eg. Xbox 3 month membership gift card.Declaration
Objective-C
@interface VOMerchantProduct : NSObject
Swift
class VOMerchantProduct : NSObject
-
VOMoneyPersonalizationOption represents a VOVoucher customization which enables the user to add a monetary component to the VOMutableVoucher. The default implementation of this personalization is a Gift Card Mall. Override this personalization if a custom payment technology is desired. *
See moreDeclaration
Objective-C
@interface VOMoneyPersonalizationOption : VOPersonalizationOption
Swift
class VOMoneyPersonalizationOption : VOPersonalizationOption
-
See moreVOMoneyPersonalizationOptionBuilder
is used only to help construct theVOMoneyPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOMoneyPersonalizationOption
moneyPersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOMoneyPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOMoneyPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVONetworkManager
is the default implementation of theVONetworkManagerProtocol
. It is used to handle any network requests. It also handles some authentication. Internally uses AFNetworking to complete requests.Declaration
Objective-C
@interface VONetworkManager : NSObject <VONetworkManagerProtocol>
Swift
class VONetworkManager : NSObject, VONetworkManagerProtocol
-
See moreVONoteMedia
is aVouchrMedia
for text based media.Declaration
Objective-C
@interface VONoteMedia : VOVoucherMedia
Swift
class VONoteMedia : VOVoucherMedia
-
VONotePersonalizationOption represents a VOVoucher customization which will be available to the user to add notes in the voucher creation view controller. Instantiate a VONotePersonalizationOption if you would like the user to be able to add notes to their VOVoucher. *
See moreDeclaration
Objective-C
@interface VONotePersonalizationOption : VOPersonalizationOption
Swift
class VONotePersonalizationOption : VOPersonalizationOption
-
See moreVONotePersonalizationOptionBuilder
is used only to help construct theVONotePersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVONotePersonalizationOption
notePersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VONotePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VONotePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVOPaymentInfo
contains data related to a part of the payment process.Declaration
Objective-C
@interface VOPaymentInfo : NSObject
Swift
class VOPaymentInfo : NSObject
-
See moreVOPaymentMerchantInfo
contains all the information related to a specific payment object inside aVOMerchant
.Declaration
Objective-C
@interface VOPaymentMerchantInfo : NSObject
Swift
class VOPaymentMerchantInfo : NSObject
-
See moreVOPersistManager
is the default implementation of theVOPersistManagerProtocol
. It is responsible for saving values indefinitely. By default it uses NSUserDefaults to save values.Declaration
Objective-C
@interface VOPersistManager : NSObject <VOPersistManagerProtocol>
Swift
class VOPersistManager : NSObject, VOPersistManagerProtocol
-
VOPersonalizationOption represents a VOVoucher customization which will be available to the user in the voucher creation view controller. A VOPersonalizationOption should exist for each personalization the user allowed access to.
Note
VOPersonalizationOption is used as a base class, instantiate an existing subclass (ex. VOPhotoPersonalizationOption) for use.Note
Any properties that are not set will have default values set.Declaration
Objective-C
@interface VOPersonalizationOption : NSObject
Swift
class VOPersonalizationOption : NSObject
-
See morePersonalizationOptionBuilder
is used only to help construct theVOPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOPersonalizationOption
personalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOPersonalizationOptionBuilder : NSObject
Swift
class VOPersonalizationOptionBuilder : NSObject
-
VOPhotoPersonalizationOption represents a
See moreVOVoucher
customization that allows the user to add images to theirVOVoucher
. Instantiate a VOPhotoPersonalizationOption and include it in the voucher creation view controller setup if you would like the user to be able to add photos. *Declaration
Objective-C
@interface VOPhotoPersonalizationOption : VOPersonalizationOption
Swift
class VOPhotoPersonalizationOption : VOPersonalizationOption
-
See moreVOPhotoPersonalizationOptionBuilder
is used only to help construct theVOPhotoPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOPhotoPersonalizationOption
photoPersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOPhotoPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOPhotoPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
The
See moreVOPreviewVoucherContentsViewController
is the screen responsible for presenting all items in aVOVoucher
and gives users the option to make changes to all editable items.Declaration
Objective-C
@interface VOPreviewVoucherContentsViewController : UIViewController <VOPreviewVoucherContentsViewControllerProtocol>
Swift
class VOPreviewVoucherContentsViewController : UIViewController, VOPreviewVoucherContentsViewControllerProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VOProductDetailsViewController : UIViewController + (instancetype)productDetailsViewControllerWithMerchant:(VOMerchant *)paymentMerchantInfo currencyCode:(NSString *)currencyCode vouchrTheme:(VOTheme *)vouchrTheme createFlowDelegate:(id<VOVoucherCreationFlowDelegate>)createFlowDelegate delegate:(id<VOProductDetailsViewControllerDelegate>)delegate; - (void)updateViewDataWithAnimation:(BOOL)animation; @end
Swift
class VOProductDetailsViewController : UIViewController
-
Undocumented
See moreDeclaration
Objective-C
@interface VOPromo : NSObject typedef NS_ENUM(NSInteger, VOPromoStatus){ VOPromoStatusUnknown, VOPromoStatusActive, VOPromoStatusCancelled, VOPromoStatusUnstarted, VOPromoStatusExpired, VOPromoStatusExhausted, VOPromoStatusClaimed, VOPromoStatusRequired, }; typedef NS_ENUM(NSInteger, VOPromoType){ VOPromoTypeUnknown, VOPromoTypeOffers, VOPromoTypeSponsoredGift, VOPromoTypeReward }; @property (nonatomic) NSString * promoId; @property (nonatomic) NSString * code; @property (nonatomic) NSString * title; @property (nonatomic) double amount; @property (nonatomic) NSString * formattedAmount; @property (nonatomic) NSString * currency; @property (nonatomic) NSString * photoUrl; @property (nonatomic) NSString * hashTag; @property (nonatomic) NSString * promoDescription; @property (nonatomic) NSString * shareMessage; @property (nonatomic) VOPromoType type; @property (nonatomic) VOMerchant * merchant; // Who is sponsoring the promo @property (nonatomic) VOGameData * gameData; @property (nonatomic) VOWrappingPaperMedia * wrappingPaper; @property (nonatomic) VOPromoStatus status; //status relative to user (claimed, upgrade etc) @property (nonatomic) VOPromoStatus ongoingStatus; //status of promo apart from user @property (nonatomic) NSInteger limit; @property (nonatomic) NSDate * dateStarts; @property (nonatomic) NSDate * dateEnds; @property (nonatomic) NSDate * dateClaimable; @property (nonatomic) NSString *errorDisplayTitle; @property (nonatomic) NSString *errorDisplayMessage; @property (nonatomic) BOOL isSurpriiseMode; @property (nonatomic) NSArray <VOVoucherMedia *> *medias; + (VOPromo*)promoFromNSDictionary:(NSDictionary*)dictionary; - (NSDictionary *)dictionaryRepresentation; @end
Swift
class VOPromo : NSObject
-
VORecipientPersonalizationOption represents a VOVoucher customization which will be available to the user to add a recipient to the VOMutableVoucher. Instantiate a VORecipientPersonalizationOption if you would like the user to be able to add a recipient to their VOVoucher. *
See moreDeclaration
Objective-C
@interface VORecipientPersonalizationOption : VOPersonalizationOption
Swift
class VORecipientPersonalizationOption : VOPersonalizationOption
-
See moreVORecipientPersonalizationOptionBuilder
is used only to help construct theVORecipientPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVORecipientPersonalizationOption
recipientPersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VORecipientPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VORecipientPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVOSealedVoucherView
is a sealedVOEnvelopeView
. It shows ribbons and a seal overtop of anVOEnvelopeView
.Declaration
Objective-C
@interface VOSealedVoucherView : UIView
Swift
class VOSealedVoucherView : UIView
-
Undocumented
See moreDeclaration
Objective-C
@interface VOSelectSoundViewController : VOTabStripContainerViewController < VOPersonalizationOptionViewControllerProtocol>
Swift
class VOSelectSoundViewController : VOTabStripContainerViewController, VOPersonalizationOptionViewControllerProtocol
-
See moreVOSoundMedia
is aVOVoucherMedia
for sounds.Declaration
Objective-C
@interface VOSoundMedia : VOVoucherMedia
Swift
class VOSoundMedia : VOVoucherMedia
-
VOSoundPersonalizationOption
represents aVOVoucher
customization which will be available to the user to add a sound to theVOMutableVoucher
. Instantiate aVOSoundPersonalizationOption
if you would like the user to be able to add a sound to theirVOVoucher
.*
See moreDeclaration
Objective-C
@interface VOSoundPersonalizationOption : VOPersonalizationOption
Swift
class VOSoundPersonalizationOption : VOPersonalizationOption
-
See moreVOSoundPersonalizationOptionBuilder
is used only to help construct theVOSoundPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOSoundPersonalizationOption
soundPersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOSoundPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOSoundPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
Manages an array of view controller instances, and presents them within an Android style tab strip interface.
The view controllers specified in
tabViewControllers
are presented within a UINavigationController. Switching tabs resets this navigation controller’s root view controller to the appropriate entry intabViewControllers
. ThetitleView
of each root view controller’snavigationItem
is managed by this controller, and is used to host the segmented control that presents the tab strip interface.Titles for the tabs are taken from each view controller’s
See moretitle
attribute.Declaration
Objective-C
@interface VOTabStripContainerViewController : UINavigationController
Swift
class VOTabStripContainerViewController : UINavigationController
-
VOTheme is used to theme all views of the application. See the VouchrStyleGuide for how the theming is mapped to each view and style recommendations.
See moreDeclaration
Objective-C
@interface VOTheme : NSObject <NSCopying>
Swift
class VOTheme : NSObject, NSCopying
-
VOTitlePersonalizationOption represents a
VOVoucher
customization which will allow users to title theirVOVoucher
. Instantiate aVOTitlePersonalizationOption
and include it in the voucher creation view controller setup if you would like the user to be able to add a title to their VOVoucher.Note
The title uses the Display font Style. Title and placeholder text colors are non-customizable. *Declaration
Objective-C
@interface VOTitlePersonalizationOption : VOPersonalizationOption
Swift
class VOTitlePersonalizationOption : VOPersonalizationOption
-
See moreVOTitlePersonalizationOptionBuilder
is used only to help construct theVOTitlePersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOTitlePersonalizationOption
titlePersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOTitlePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOTitlePersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
Undocumented
See moreDeclaration
Objective-C
@interface VOUI : NSObject @property (nonatomic, weak, nullable) id<VOUIDelegate> delegate; + (instancetype)instance; - (id<VOGiftPackageFactory>)makeGiftPackageFactory; @end
Swift
class VOUI : NSObject
-
See moreVOUser
model for the VouchrSDK. Users are used to identify the logged in user and typically gifts are sent to aVOUser
(s).Declaration
Objective-C
@interface VOUser : NSObject <NSCoding, NSCopying>
Swift
class VOUser : NSObject, NSCoding, NSCopying
-
This is the default implementation of the
See moreVOUserManagerProtocol
. TheVOUserManager
performs allVOUser
related requests.Declaration
Objective-C
@interface VOUserManager : NSObject <VOUserManagerProtocol>
Swift
class VOUserManager : NSObject, VOUserManagerProtocol
-
See moreVOUserNetwork
is a model to represent the different networks a user has connected with.Declaration
Objective-C
@interface VOUserNetwork : NSObject
Swift
class VOUserNetwork : NSObject
-
See moreVOVideoMedia
is aVouchrMedia
for videos.Declaration
Objective-C
@interface VOVideoMedia : VOVoucherMedia
Swift
class VOVideoMedia : VOVoucherMedia
-
VOVideoPersonalizationOption represents a VOVoucher customization which will be available to the user to add videos in the voucher creation view controller. Instantiate a VOVideoPersonalizationOption if you would like the user to be able to add videos to their VOVoucher. *
See moreDeclaration
Objective-C
@interface VOVideoPersonalizationOption : VOPersonalizationOption
Swift
class VOVideoPersonalizationOption : VOPersonalizationOption
-
See moreVOVideoPersonalizationOptionBuilder
is used only to help construct theVOVideoPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOVideoPersonalizationOption
videoPersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOVideoPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOVideoPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
See moreVOVoucher
is the model that encompases all components of a ‘gift’. This class is immutable. UseVOMutableVoucher
if you need to change values.Declaration
Objective-C
@interface VOVoucher : NSObject <NSCoding>
Swift
class VOVoucher : NSObject, NSCoding
-
Default implemenation of the
See moreVOVoucherManagerProtocol
.VOVoucherManager
is responsible for managing anything related toVOVoucher
s.Declaration
Objective-C
@interface VOVoucherManager : NSObject <VOVoucherManagerProtocol>
Swift
class VOVoucherManager : NSObject, VOVoucherManagerProtocol
-
See moreVOVoucherMedia
is the model for all Media items inside of aVOVoucher
. It represents all of the different Media types: Image - Any kind of photo (eg. png, jpg). Animation - Any kind of animated photo (eg. gif). Sound - Any kind of sound (eg. mp3). Youtube - A youtube video. Video - Any kind of video (eg. m4a). Note - Any kind of text.Declaration
Objective-C
@interface VOVoucherMedia : NSObject <NSCoding>
Swift
class VOVoucherMedia : NSObject, NSCoding
-
See moreVOVoucherPayment
contains all payment information including source, destination, and redemption information. EachVOUser
requesting aVOVoucher
will receive differentVOVoucherPayment
information depending on their association of the VOVoucher.Declaration
Objective-C
@interface VOVoucherPayment : NSObject
Swift
class VOVoucherPayment : NSObject
-
See moreVOVoucherRevealFlowCoordinator
is responsible for the reveal setup and navigation.Declaration
Objective-C
@interface VOVoucherRevealFlowCoordinator : NSObject
Swift
class VOVoucherRevealFlowCoordinator : NSObject
-
See moreVoucherRevealManagerBuilder
is used to construct theVOVoucherRevealManager
and should not be initialized directly.Declaration
Objective-C
@interface VoucherRevealManagerBuilder : NSObject
Swift
class VoucherRevealManagerBuilder : NSObject
-
See moreVOVoucherRevealViewController
is the default reveal view controller for showing the contents of aVOVoucher
. The reaveal view controller can be used for previewing, contributing and claiming aVOVoucher
.Declaration
Objective-C
@interface VOVoucherRevealViewController : UIViewController
Swift
class VOVoucherRevealViewController : UIViewController
-
Undocumented
See moreDeclaration
Objective-C
@interface VOVoucherTemplate : NSObject @property (nonatomic) NSURL *headerImageURL; @property (nonatomic) NSString *headerImageAlt; @property (nonatomic) NSString *headerText; @property (nonatomic) NSString *headerDetails; @property (nonatomic) NSURL *backgroundPhotoURL; @property (nonatomic) NSDate *dateClaimable; @property (nonatomic) NSString *title; @property (nonatomic) NSArray<NSDictionary *> *medias; @property (nonatomic) VOWrappingPaperMedia *wrappingPaper; @property (nonatomic) VOMerchant *merchant; @property (nonatomic) double merchantAmount; @property (nonatomic) VOGameData *gameData; @property (nonatomic) long long templateId; @property (nonatomic) long long templateCategoryId; @property (nonatomic) BOOL hasSeen; + (VOVoucherTemplate *)voucherTemplateFromDictionary:(NSDictionary *)dictionary; - (VOMutableVoucher *)makeMutableVoucher; @end
Swift
class VOVoucherTemplate : NSObject
-
Undocumented
See moreDeclaration
Objective-C
@interface VOWrappingData : NSObject @property (nonatomic) VOWrappingPaperMedia *wrappingPaperMedia; @end
Swift
class VOWrappingData : NSObject
-
See moreVOWrappingPaperCategory
is the model for representing a collection of likeWrappingPaper
s.Declaration
Objective-C
@interface VOWrappingPaperCategory : NSObject
Swift
class VOWrappingPaperCategory : NSObject
-
See moreVOWrappingPaperManager
is the default implementation ofVOWrappingPaperManagerProtocol
. It is responsible for requesting and parsingVOWrappingPaperCategory
andWrappingPaper
s from the VouchrServer.Declaration
Objective-C
@interface VOWrappingPaperManager : NSObject <VOWrappingPaperManagerProtocol>
Swift
class VOWrappingPaperManager : NSObject, VOWrappingPaperManagerProtocol
-
A
See moreVOWrappingPaperMedia
contains the data to show a wrapping on anVOEnvelopeView
.Declaration
Objective-C
@interface VOWrappingPaperMedia : VOImageMedia
Swift
class VOWrappingPaperMedia : VOImageMedia
-
See moreVOWrappingPersonalizationOption
represents aVOVoucher
customization which will be available to the user to add a custom wrapping paper in the voucher creation view controller. *Declaration
Objective-C
@interface VOWrappingPersonalizationOption : VOPersonalizationOption
Swift
class VOWrappingPersonalizationOption : VOPersonalizationOption
-
See moreVOWrappingPersonalizationOptionBuilder
is used only to help construct theVOWrappingPersonalizationOption
and should not be initialized directly. Instances of these properties should be instantiated and set in theVOWrappingPersonalizationOption
wrappingPersonalizationOptionWithBuilder:
method.Declaration
Objective-C
@interface VOWrappingPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
Swift
class VOWrappingPersonalizationOptionBuilder : VOPersonalizationOptionBuilder
-
This personalization screen allows users to browse and select WrappingPapers for their
See moreVOVoucher
Declaration
Objective-C
@interface VOWrappingViewController : UIViewController <VOPersonalizationOptionViewControllerProtocol>
Swift
class VOWrappingViewController : UIViewController, VOPersonalizationOptionViewControllerProtocol
-
See moreVOYouTubeManager
is the default implementation ofVOYoutubeManagerProtocol
. It is responsible for requesting and parsing Youtube Videos from Youtube / Google.Declaration
Objective-C
@interface VOYouTubeManager : NSObject <VOYoutubeManagerProtocol>
Swift
class VOYouTubeManager : NSObject, VOYoutubeManagerProtocol
-
See moreVOYouTubeMedia
is aVOVoucherMedia
that represents a YouTube Video.Declaration
Objective-C
@interface VOYouTubeMedia : VOVoucherMedia
Swift
class VOYouTubeMedia : VOVoucherMedia